package com.guopiao.vat.common.general.response;

/**
 *  
 *  * @Author: Xander Xiao
 *  * @Description: 全局通用返回体
 *  @Date:Create in 2017/12/26
 *  
 */

public class GeneralResponse<T> {

    /*请求唯一标识*/
    private String requestId;
    /*请求返回代码*/
    private String code;
    /*请求返回信息 */
    private String message;
    /*请求返回业务内容*/
    private T data;

    public String getRequestId() {
        return requestId;
    }

    public void setRequestId(String requestId) {
        this.requestId = requestId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "GeneralResponse{" +
                "requestId='" + requestId + '\'' +
                ", rtnCode='" + code + '\'' +
                ", rtnMsg='" + message + '\'' +
                ", rtnData=" + data +
                '}';
    }
}
